-- CALC_CAVE_29_TARGET_CLASS

-- 计算阴暗的房屋的中心格子类型
return function()
    local bloodpool = { ["class"] = 245, ["ratio"] = 50 }; -- 血池
    local hunter     = { ["class"] = 246, ["ratio"] = 50 }; -- 血猎者残骸

    local arr = { bloodpool, hunter};

    -- 先过滤一遍
    DungeonInstanceM.filterInstanceGrids(arr);

    local seed = DungeonM.getRandSeed("CALC_CAVE_29_TARGET_CLASS");
    local info = fetchElemBySeed(arr, seed);

    return info["class"];
end
